package site.yunnong.atvris.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 首页的video card
 * @author JinghaoZhang
 * @date 2021年-05月-09日
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VideoCardVO implements Serializable {

    @ApiModelProperty("视频id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long uvid;
    @ApiModelProperty("用户id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long uuid;
    @ApiModelProperty("上传视频用户昵称")
    private String userNickname;
    @ApiModelProperty("视频分级")
    private Integer level;
    @ApiModelProperty("分区")
    private String partitionName;
    @ApiModelProperty("视频封面url")
    private String cover;
    @ApiModelProperty("视频时长")
    private String duration;
    @ApiModelProperty("视频标题")
    private String title;
    @ApiModelProperty("视频上传日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime uploadTime;
    @ApiModelProperty("播放量")
    private Integer viewCount;
    @ApiModelProperty("点赞量")
    private Integer likedCount;
    
}
